<?php

$baseUrl='http://cooking.sunbird.net';

$systemJsUrl='/js/original/';
$systemCssUrl='/css/original/';
$systemImageUrl='/images/original/';

$imageBaseUrl=$baseUrl.'/upload/';
$imageBasePath='/home/bob/src/cookingsns/trunk/src/upload/';

return array(
    'baseUrl'=>$baseUrl,
    
    'systemAsset'=>array(
        'jsBaseUrl'=>$systemJsUrl,
        'cssBaseUrl'=>$systemCssUrl,
        'sysImageBaseUrl'=>$systemImageUrl,
    ),

    'userImage'=>array(
        'kitchen'=>array(
            'baseUrl'=>$imageBaseUrl,
            'basePath'=>$imageBasePath,
            'dir'=>'kitchen/',
            'uploadFormats'=>array('jpg'=>1, 'gif'=>1, 'png'=>1),
            'defaultImage'=>0,
            'images'=>array(
                0=>array('jpegQuality'=>100,'resizeUp'=>true, 'format'=>'jpg','defaultUrl'=>'',operations=>array(
                    array('adaptiveResize', 'width'=>440, 'height'=>150),
                ))
            ),
        ),
        'recipe'=>array(
            'baseUrl'=>$imageBaseUrl,
            'basePath'=>$imageBasePath,
            'dir'=>'recipe/',
            'uploadFormats'=>array('jpg'=>1, 'gif'=>1, 'png'=>1),
            'defaultImage'=>'big',
            'images'=>array(
                'big'=>array('jpegQuality'=>100, 'resizeUp'=>true, 'format'=>'jpg', 'defaultUrl'=>$systemImageUrl.'blank.jpg',operations=>array(
                    array('resize', 'maxWidth'=>280, 'maxHeight'=>0),
                )),
                'small'=>array('jpegQuality'=>100, 'resizeUp'=>true, 'format'=>'jpg', 'defaultUrl'=>'', operations=>array(
                    array('resize', 'maxWidth'=>80, 'maxHeight'=>0),
                )),
            ),
        ),  
        'step'=>array(
            'baseUrl'=>$imageBaseUrl,
            'basePath'=>$imageBasePath,
            'dir'=>'step/',
            'uploadFormats'=>array('jpg'=>1, 'gif'=>1, 'png'=>1),
            'defaultImage'=>'small',
            'images'=>array(
                'big'=>array('jpegQuality'=>100, 'resizeUp'=>true, 'format'=>'jpg', operations=>array(
                    array('resize', 'maxWidth'=>280, 'maxHeight'=>0),
                )),
                'small'=>array('jpegQuality'=>100, 'resizeUp'=>true, 'format'=>'jpg', operations=>array(
                    array('resize', 'maxWidth'=>135, 'maxHeight'=>0),
                )),
            ),
        ),  
    ),
);
